﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yun.Interface;
using Yun.Response;
using Yun.Util;

namespace Yun.IM.Request
{
    /// <summary>
    /// 通过历史聊天记录信息更新实时路由数据
    /// yun.im.rongcloud.realtime.from.history.update
    /// </summary>
    public class UpdateRealTimeIMFromHistoryRequest: ITopRequest<IntResultResponse>
    {

        /// <summary>
        /// 开始时间 指定北京时间某天某小时，格式为2014010101。多个日期用英文逗号隔开。
        /// </summary>
        public long StartDate { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public long EndDate { get; set; }


        public void Validate()
        {
            RequestValidator.ValidateRequired("startdate", StartDate);
            RequestValidator.ValidateRequired("enddate", EndDate);
        }

        public string GetApiName()
        {
            return "yun.im.rongcloud.realtime.from.history.update";
        }

        public IDictionary<string, string> GetParameters()
        {
            var parameters = new YunDictionary
            {
                {"startdate", StartDate},
                {"enddate", EndDate}
            };
            return parameters;
        }


    }
}
